/**
 * 
 */
package exception;

/**
 * Creation date: Nov 12, 2007
 * Use case: 
 *
 * @author: cristian.rasch
 */
public class BaseException extends Exception {
    
    protected byte code;
    
    protected String message;
    
    protected Throwable throwable;
    
    protected BaseException(byte code) {
        this.code = code;
    }
        
    protected BaseException(String message) {
        this.message = message;
    }
    
    protected BaseException(byte code, String message) {
        this.code = code;
        this.message = message;
    }
    
    protected BaseException(Throwable throwable) {
        this.throwable = throwable;
    }

    protected BaseException(byte code, Throwable throwable) {
        this.code = code;
        this.throwable = throwable;
    }
    
    /**
     * Returns the code.
     * @return the code.
     */
    public byte getCode() {
        return this.code;
    }

    /**
     * Returns the message.
     * @return the message.
     */
    public String getMessage() {
        return this.message;
    }

    /**
     * Returns the throwable.
     * @return the throwable.
     */
    public Throwable getThrowable() {
        return this.throwable;
    }
}
